<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue'
import ArticleList from './components/ArticleList.vue'
// import { ref } from 'vue';
// 在app.vue中传递channelId 切换频道的时候,列表需要根据频道id去发请求更新列表
// const channelId = ref(0)
// const fn = (val) => {
//   channelId.value = vale
// }
</script>

<template>
  <!-- $event 是固定的 就是之前回调函数中的参数 -->
<ChannelNav></ChannelNav>
<ArticleList></ArticleList>
</template>

<style lang="scss" scoped></style>
